package com.joker.orange.service;

import com.joker.orange.domain.UserDeduction;
import com.joker.orange.domain.vo.UserDeductionVo;
import com.joker.orange.domain.bo.UserDeductionBo;
import com.joker.common.core.page.TableDataInfo;
import com.joker.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 用户扣单配置Service接口
 *
 * @author Joker
 * @date 2024-07-15
 */
public interface IUserDeductionService {

    /**
     * 查询用户扣单配置
     */
    UserDeductionVo queryById(Long id);

    /**
     * 查询用户扣单配置列表
     */
    TableDataInfo<UserDeductionVo> queryPageList(UserDeductionBo bo, PageQuery pageQuery);

    /**
     * 查询用户扣单配置列表
     */
    List<UserDeductionVo> queryList(UserDeductionBo bo);

    /**
     * 新增用户扣单配置
     */
    Boolean insertByBo(UserDeductionBo bo);

    /**
     * 修改用户扣单配置
     */
    Boolean updateByBo(UserDeductionBo bo);

    /**
     * 校验并批量删除用户扣单配置信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
